package cn.demoncat.util.lang.entity.report;

import java.util.Objects;

/**
 * 统计查询对象
 * 
 * @author 延晓磊
 *
 * @since 2018年7月24日
 */
public class IdCountVo extends IdCount {

	protected String name;
	protected String date;
	protected String type;

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		if (!super.equals(o)) return false;
		IdCountVo countVo = (IdCountVo) o;
		return Objects.equals(name, countVo.name) &&
				Objects.equals(date, countVo.date) &&
				Objects.equals(type, countVo.type);
	}

	@Override
	public int hashCode() {
		return Objects.hash(super.hashCode(), name, date, type);
	}

	@Override
	public String toString() {
		return "SidCountVo{" +
				"name='" + name + '\'' +
				", date='" + date + '\'' +
				", type='" + type + '\'' +
				", id='" + id + '\'' +
				", count=" + count +
				", sum=" + sum +
				'}';
	}
}
